import request from '@/utils/request';

// 获取采收记录列表
export function getHarvestList(params) {
  return request.get('/app-api/nongye/appHarvest-records/page', params);
}

// 获取采收记录详情
export function getHarvestDetail(id) {
  return request.get('/app-api/nongye/appHarvest-records/get', { id });
}

// 创建采收记录
export function createHarvest(data) {
  return request.post('/app-api/nongye/appHarvest-records/create', data);
}

// 更新采收记录
export function updateHarvest(data) {
  return request.put('/app-api/nongye/appHarvest-records/update', data);
}

// 删除采收记录
export function deleteHarvest(id) {
  return request.delete(`/app-api/nongye/appHarvest-records/delete?id=${id}`);
} 